//引入请求库
import http from "../utils/http2";

/**
 *获取员工列表
 * @param {*} data
 * @returns
 */
export function getEmpList(data) {
  return http.post("/api/emp/list", data);
}

export function savaEmp(data) {
  return http.post("/api/emp", data);
}

export function deleteEmp(id) {
  return http.delete(`/api/emp/${id}`);
}
export function queryDetail(id) {
  return http.get(`/api/emp/${id}`);
}
export function updateEmp(data) {
  return http.put("/api/emp", data);
}
export function checkPassword(employee_id, password) {
  return http.post("/api/emp/check", { employee_id, password });
}
export function updatePassword(employee_id, password) {
  return http.post("/api/emp/update", { employee_id, password });
}
